// 导入模块
// 导入可以设置别名
import {name as username, age, gender, xm, nl, xb} from './module1.js';

console.log(username);
console.log(age);
console.log(gender);
console.log(xm)
console.log(nl)
console.log(xb)

// 星号方式导入
// import * as obj from './module1.js';
// console.log(obj.name)

//导入类和函数
import {User, nowTime} from './module2.js';

new User(1000, 'zs').getInfo();
console.log(nowTime())
